package com.cloud.lan.entity.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品评价信息表
 * </p>
 *
 * @author xyqierkang@163.com
 * @since 2022-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lan_goods_evaluate")
public class LanGoodsEvaluateDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 标题
     */
    private String title;

    /**
     * 评价的具体内容
     */
    private String content;

    /**
     * 商品置顶排序
     */
    private Integer sort;

    /**
     * 评价日期
     */
    private Date evaluateDate;

    /**
     * 是否删除，0.否，1.是
     */
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String goodsName;

    /**
     * 微信昵称
     */
    @TableField(exist = false)
    private String wxName;

    /**
     * 微信头像
     */
    @TableField(exist = false)
    private String wxHead;

    /**
     * 评价点赞总数
     */
    @TableField(exist = false)
    private Integer praiseCount;

    /**
     * 徽章信息
     */
    @TableField(exist = false)
    private LanBadgeCfgDO lanBadgeCfgDO;

    /**
     * 是否是自己点赞
     */
    @TableField(exist = false)
    private boolean oneself;

    /**
     * 用户手机号
     */
    @TableField(exist = false)
    private String userPhone;
}
